package com.cmict.data.bpm.controller.admin.definition.vo.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cmict.data.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 流程变量 Excel 导出 Request VO", description = "参数和 TaskVariablePageReqVO 是一致的")
@Data
public class TaskVariableExportReqVO {

    @ApiModelProperty(value = "流程变量名称")
    private String name;

    @ApiModelProperty(value = "流程模型的编号")
    private String modelId;

    @ApiModelProperty(value = "流程定义的编号")
    private String processDefinitionId;

    @ApiModelProperty(value = "流程任务定义的 key")
    private String taskId;

    @ApiModelProperty(value = "活动类型")
    private String type;

    @ApiModelProperty(value = "规则类型")
    private Integer rule;

    @ApiModelProperty(value = "规则值，JSON 数组")
    private String options;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "开始创建时间")
    private LocalDateTime beginCreateTime;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "结束创建时间")
    private LocalDateTime endCreateTime;

}
